<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="备份前准备">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="SAP_HANA_00008.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="30-OceanProtect 备份一体机 1.5.0-1.6.0 帮助中心">
  <meta name="DC.Publisher" content="20240320">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="SAP_HANA_00011">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>备份前准备</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="SAP_HANA_00011"></a><a name="SAP_HANA_00011"></a>
  <h1 class="topictitle1">备份前准备</h1>
  <div>
   <p>备份SAP HANA数据库前，请参考<a href="#SAP_HANA_00011__zh-cn_topic_0000001455091930_table10744125193920">表1</a>提前准备相关信息。</p>
   <div class="tablenoborder">
    <a name="SAP_HANA_00011__zh-cn_topic_0000001455091930_table10744125193920"></a><a name="zh-cn_topic_0000001455091930_table10744125193920"></a>
    <table cellpadding="4" cellspacing="0" summary="" id="SAP_HANA_00011__zh-cn_topic_0000001455091930_table10744125193920" frame="border" border="1" rules="all">
     <caption>
      <b>表1 </b>备份前准备
     </caption>
     <colgroup>
      <col style="width:17.34%">
      <col style="width:11.709999999999999%">
      <col style="width:54.61%">
      <col style="width:16.34%">
     </colgroup>
     <thead align="left">
      <tr>
       <th align="left" class="cellrowborder" valign="top" width="17.34%" id="mcps1.3.2.2.5.1.1"><p>准备项</p></th>
       <th align="left" class="cellrowborder" valign="top" width="11.709999999999999%" id="mcps1.3.2.2.5.1.2"><p>是否必须</p></th>
       <th align="left" class="cellrowborder" valign="top" width="54.61%" id="mcps1.3.2.2.5.1.3"><p>获取方式</p></th>
       <th align="left" class="cellrowborder" valign="top" width="16.34%" id="mcps1.3.2.2.5.1.4"><p>数据使用章节</p></th>
      </tr>
     </thead>
     <tbody>
      <tr>
       <td class="cellrowborder" valign="top" width="17.34%" headers="mcps1.3.2.2.5.1.1 "><p>数据库名称与实列ID</p></td>
       <td class="cellrowborder" valign="top" width="11.709999999999999%" headers="mcps1.3.2.2.5.1.2 "><p>必选</p></td>
       <td class="cellrowborder" valign="top" width="54.61%" headers="mcps1.3.2.2.5.1.3 ">
        <div class="p">
         要保护的数据库名称，数据库名称可通过以下方式查询：
         <ol>
          <li>使用PuTTY登录SAP HANA数据库所在主机。</li>
          <li>执行以下命令，进入SAP HANA数据库终端系统，以用户名<strong>s00adm</strong>为例。<pre class="screen">su - <em>s00adm</em>
hdbsql -i 00 -n localhost:30013 -d SYSTEMDB -u SYSTEM -p <em>用户安装数据库时自定义的密码</em>;</pre></li>
          <li>执行以下命令，查询数据库名称与实例ID。<pre class="screen">SELECT * FROM M_DATABASES;</pre> <p>回显类似如下，其中<strong>SYSTEMDB</strong>是数据库名称，<strong>S00</strong>是实例ID。</p> <pre class="screen">DATABASE_NAME,DESCRIPTION,ACTIVE_STATUS,ACTIVE_STATUS_DETAILS,OS_USER,OS_GROUP,RESTART_MODE
"SYSTEMDB","SystemDB-S00-00","YES","","","","DEFAULT"
"S00","S00-00","YES","","","","DEFAULT"
</pre></li>
         </ol>
        </div></td>
       <td class="cellrowborder" rowspan="5" valign="top" width="16.34%" headers="mcps1.3.2.2.5.1.4 "><p><a href="SAP_HANA_00013.html">步骤1：注册SAP HANA数据库（File备份方式）</a></p> <p><a href="SAP_HANA_00020.html">步骤1：注册SAP HANA数据库（Backint备份方式）</a></p></td>
      </tr>
      <tr>
       <td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p>数据库主机</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p>必选</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p>数据库所在的主机。</p> <p>如果数据库是集群部署，请选择数据库分布的所有主机。</p></td>
      </tr>
      <tr>
       <td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p>数据库用户名及密码</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p>必选</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p>访问数据库的用户名及其密码。</p></td>
      </tr>
      <tr>
       <td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p>数据库的systemId及SQL Port</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p>必选</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 ">
        <ul>
         <li>systemId可在SAP HANA Studio上查询，如下所示：<p><span><img src="zh-cn_image_0000001792389580.png"></span></p></li>
         <li>SQL Port系统数据库master节点的SQL Port，可在SAP HANA Studio上查询。<p>单租户模式下，默认SQL Port为30015；多租户模式下，默认SQL Port为30013。</p></li>
        </ul></td>
      </tr>
      <tr>
       <td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p>系统数据库用户名及密码</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p>可选</p></td>
       <td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p>要保护的数据库为租户数据库时，才需要准备该参数。</p></td>
      </tr>
     </tbody>
    </table>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>父主题：</strong> <a href="SAP_HANA_00008.html">备份</a>
    </div>
   </div>
  </div>
 </body>
</html>